package com.xiaoh.dormitoryrepairreportbackend.model.dto.material;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 物料查询请求
 * 支持游标分页和页码显示的混合模式
 */
@Data
@Schema(description = "物料查询请求")
public class MaterialQueryRequest implements Serializable {

    @Schema(description = "物料名称")
    private String name;

    @Schema(description = "规格型号")
    private String model;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "是否库存不足(true:查询库存不足的物料)")
    private Boolean isLowStock;

    @Schema(description = "页面大小", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "当前页码，用于前端分页组件显示", example = "1")
    private Long current = 1L;

    @Schema(description = "游标ID，用于游标分页查询（性能优化）")
    private Long lastId;

    private static final long serialVersionUID = 1L;
}
